package com.zhipu.balance.pop

import android.widget.LinearLayout
import android.widget.TextView
import com.blankj.utilcode.util.ActivityUtils
import com.lxj.xpopup.core.CenterPopupView
import com.zhipu.balance.R
import com.zhipu.balance.listener.ChooseClickCallback

/**
 * 修改 删除
 */
class ModifyDeletePopup(var mChooseClickCallback : ChooseClickCallback) : CenterPopupView(ActivityUtils.getTopActivity()){



    override fun getImplLayoutId(): Int {
        return R.layout.popup_modify_delete
    }


    override fun onCreate() {
        super.onCreate()
        findViewById<LinearLayout>(R.id.modify).setOnClickListener {
            mChooseClickCallback.onChooseClickCallback(0)
            dismiss()
        }
        findViewById<LinearLayout>(R.id.delete).setOnClickListener {
            mChooseClickCallback.onChooseClickCallback(1)
            dismiss()
        }
    }
}